from Base import Asset

class Cash(Asset):

	def npv_in_local_currency(self, ref_time, quote_type):
	
		return 1.0
		
	@staticmethod
	def type_name():
		return "CASH"
		
	def __init__(self, currency):
		self.cash_currency = currency
		
	def currency(self):
		return self.cash_currency
		
	def __hash__(self):
		return hash(self.cash_currency)
		
	def __eq__(self, other):
		return other and self.currency() == other.currency()
